package pkg

import (
	"goods_srv/goods"
	"google.golang.org/grpc"
)

func GoodsClient(address string, port string) (goods.GoodsClient, error) {
	conn, err := grpc.Dial(address+":"+port, grpc.WithInsecure())
	if err != nil {
		return nil, err
	}

	return goods.NewGoodsClient(conn), nil
}
